// 引入vue
import Vue from 'vue'

// 引入路由
import VueRouter from 'vue-router'
import router from './router'
// 手动安装路由
Vue.use(VueRouter)

// 导入vue-resource
import vueResource from 'vue-resource'
// 安装vue-resource
Vue.use(vueResource)

// 按需导入mint-ui
import { Button, Header, Swipe, SwipeItem } from 'mint-ui'
Vue.component(Button.name, Button);
Vue.component(Header.name, Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);

// 导入Mui
import './lib/mui/css/mui.css'
// 用Mui额外的字体图标库需要引额外的样式
import './lib/mui/css/icons-extra.css'

// 导入字体图标库
import 'font-awesome/css/font-awesome.css'

// 导入app组件
import app from './app.vue'

var vm = new Vue({
  el: '#app',
  render: c => {
    return c(app)
  },
  router
})